import request from '~/utils/request'
import cookie from 'js-cookie'

export default{
  // 登录
  login(query) {
    return request({
      url: `/api/ucenter/member/login`,
      method: 'post',
      data: query
    })
  },
  // 获取用户信息，必须随带cookie才能获取到用户的信息
  getInfo() {
    return request({
      url: `/api/ucenter/member/getInfo`,
      method: 'post'
    })
  },

}
